<?php


namespace app\agent\controller\agent;

use app\agent\controller\Controller;



class Index extends Controller{

    public function index()
    {

        // 当前用户菜单url
        $menus = $this->menus();
        //var_dump($menus);die;
        $url = current(array_values($menus))['index'];

        //var_dump($url);die;
        if ($url !== 'agent.agent/index') {
            $this->redirect($url);
        }
        return $this->fetch('index');
    }
}